import request from '@/utils/request'

// 查询采购指令列表
export function listFycgzl(query) {
  return request({
    url: '/purchase/outside/fycgzl/list',
    method: 'get',
    params: query
  })
}

// 查询采购指令详细
export function getFycgzl(fyCgzloid) {
  return request({
    url: '/purchase/outside/fycgzl/' + fyCgzloid,
    method: 'get'
  })
}

// 新增采购指令
export function addFycgzl(data) {
  return request({
    url: '/purchase/outside/fycgzl',
    method: 'post',
    data: data
  })
}

// 修改采购指令
export function updateFycgzl(data) {
  return request({
    url: '/purchase/outside/fycgzl',
    method: 'put',
    data: data
  })
}

// 删除采购指令
export function delFycgzl(fyCgzloid) {
  return request({
    url: '/purchase/outside/fycgzl/' + fyCgzloid,
    method: 'delete'
  })
}
